<?include ($_SERVER ["DOCUMENT_ROOT"] . "/lib/module/conn_db.php");?>
<?include ($_SERVER ["DOCUMENT_ROOT"] . "/lib/module/Util.php");?>
<?php //DB Open

	$result = null;
	$db = new MyDB ( false );
	$db->err_report = true;

?>
<?php

	$util = new Util();

	$sid = $_GET['sid'];

	$sql = "SELECT * from tb_board_article WHERE category_sid=".$sid." and  board_sid=4 ORDER BY article_title ASC";
	$db->query ( $sql );
	$query = $db->result;
	$total = mysql_num_rows ($query);

	if($total>0){
		while($row = mysql_fetch_object($query)){

			if($row->article_exp7=="공무원") $list[1][] = $row;
			if($row->article_exp7=="정치인") $list[2][] = $row;
			if($row->article_exp7=="경제/기업인") $list[3][] = $row;
			if($row->article_exp7=="금융인") $list[4][] = $row;
			if($row->article_exp7=="군인") $list[5][] = $row;
			if($row->article_exp7=="법조인") $list[6][] = $row;
			if($row->article_exp7=="언론인") $list[7][] = $row;
			if($row->article_exp7=="교육인") $list[8][] = $row;
			if($row->article_exp7=="의료인") $list[9][] = $row;
			if($row->article_exp7=="전문직업인") $list[10][] = $row;
			if($row->article_exp7=="종교인") $list[11][] = $row;
			if($row->article_exp7=="연구학술인") $list[12][] = $row;
			if($row->article_exp7=="문화예술인") $list[13][] = $row;
			if($row->article_exp7=="사회복지기관단체인") $list[14][] = $row;
			if($row->article_exp7=="스포츠인") $list[15][] = $row;
			if($row->article_exp7=="대중문화연예인") $list[16][] = $row;

		}
	}
?>
<?php //DB Close

	$db->close ();

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<? include "inc/inc_header.php" ?><!-- header -->
 <body style="background-color:transparent"  oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
	<td width="248" valign="top" style="padding-bottom:20px;"><table width="210" border="0" cellspacing="0" cellpadding="0">
		<tr>
		  <td class="text07" style="padding-bottom:4px;"><strong>공무원</strong></td>
		</tr>
		<tr>
		  <td><table width="210" border="0" cellspacing="0" cellpadding="0">
			<tr>
			  <td><img src="img/surn/cont_img05.jpg" width="210" height="10"></td>
			</tr>
			<tr>
			  <td height="120" valign="top" background="img/surn/cont_img07.jpg" style="padding:4px 14px 4px 14px;">
				<?php $i=0;?>
				<?php if(count($list[1])>0):?>
				  <?php foreach ($list[1] as $key => $val) :?>
					<?php if($i%4==0):?>
					  <table width="0" border="0" cellspacing="0" cellpadding="0">
						<tr>
					<?php endif;?>
						  <td <?php if($i%4!=3):?>width="48"<?php endif;?> height="28" class="text02">
							 <a href="pup03.php" class="su" onclick="top.popup(this.href+'?sid=<?php echo $val->article_sid;?>', '460','336');return false" ><?php echo $val->article_title;?></a>
						  </td>
					<?php if ($i+1==count($list[1])) :?>
						<?php $q = $i%4+1;;?>
						<?php for ($j=0; $j<3-($i%4); $j++) :?>
							<td <?php if($q%4!=3):?>width="48"<?php endif;?> height="28" class="text02">&nbsp;</td>
							<?php $q++;?>
						<?php endfor;?>
					<?php endif;?>
					<?php if($i%4==3 || $i+1==count($list[1])):?>
						</tr>
					  </table>
					<?php endif;?>
					<?php $i++;?>
				  <?php endforeach;?>
				<?php endif;?>
			  </td>
			</tr>
			<tr>
			  <td><img src="img/surn/cont_img06.jpg" width="210" height="10"></td>
			</tr>
		  </table></td>
		</tr>
	</table></td>
	<td width="248" valign="top"><table width="210" border="0" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="text07" style="padding-bottom:4px;"><strong>정치인</strong></td>
	  </tr>
	  <tr>
		<td><table width="210" border="0" cellspacing="0" cellpadding="0">
			<tr>
			  <td><img src="img/surn/cont_img05.jpg" width="210" height="10"></td>
			</tr>
			<tr>
			  <td height="120" valign="top" background="img/surn/cont_img07.jpg" style="padding:4px 14px 4px 14px;">
				<?php $i=0;?>
				<?php if(count($list[2])>0):?>
				  <?php foreach ($list[2] as $key => $val) :?>
					<?php if($i%4==0):?>
					  <table width="0" border="0" cellspacing="0" cellpadding="0">
						<tr>
					<?php endif;?>
						  <td <?php if($i%4!=3):?>width="48"<?php endif;?> height="28" class="text02">
							 <a href="pup03.php" class="su" onclick="top.popup(this.href+'?sid=<?php echo $val->article_sid;?>', '460','336');return false" ><?php echo $val->article_title;?></a>
						  </td>
					<?php if ($i+1==count($list[2])) :?>
						<?php $q = $i%4+1;;?>
						<?php for ($j=0; $j<3-($i%4); $j++) :?>
							<td <?php if($q%4!=3):?>width="48"<?php endif;?> height="28" class="text02">&nbsp;</td>
							<?php $q++;?>
						<?php endfor;?>
					<?php endif;?>
					<?php if($i%4==3 || $i+1==count($list[2])):?>
						</tr>
					  </table>
					<?php endif;?>
					<?php $i++;?>
				  <?php endforeach;?>
				<?php endif;?></td>
			</tr>
			<tr>
			  <td><img src="img/surn/cont_img06.jpg" width="210" height="10"></td>
			</tr>
		</table></td>
	  </tr>
	</table></td>
	<td width="248" valign="top"><table width="210" border="0" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="text07" style="padding-bottom:4px;"><strong>경제/기업인</strong></td>
	  </tr>
	  <tr>
		<td><table width="210" border="0" cellspacing="0" cellpadding="0">
			<tr>
			  <td><img src="img/surn/cont_img05.jpg" width="210" height="10"></td>
			</tr>
			<tr>
			  <td height="120" valign="top" background="img/surn/cont_img07.jpg" style="padding:4px 14px 4px 14px;">
				<?php $i=0;?>
				<?php if(count($list[3])>0):?>
				  <?php foreach ($list[3] as $key => $val) :?>
					<?php if($i%4==0):?>
					  <table width="0" border="0" cellspacing="0" cellpadding="0">
						<tr>
					<?php endif;?>
						  <td <?php if($i%4!=3):?>width="48"<?php endif;?> height="28" class="text02">
							 <a href="pup03.php" class="su" onclick="top.popup(this.href+'?sid=<?php echo $val->article_sid;?>', '460','336');return false" ><?php echo $val->article_title;?></a>
						  </td>
					<?php if ($i+1==count($list[3])) :?>
						<?php $q = $i%4+1;;?>
						<?php for ($j=0; $j<3-($i%4); $j++) :?>
							<td <?php if($q%4!=3):?>width="48"<?php endif;?> height="28" class="text02">&nbsp;</td>
							<?php $q++;?>
						<?php endfor;?>
					<?php endif;?>
					<?php if($i%4==3 || $i+1==count($list[3])):?>
						</tr>
					  </table>
					<?php endif;?>
					<?php $i++;?>
				  <?php endforeach;?>
				<?php endif;?></td>
			</tr>
			<tr>
			  <td><img src="img/surn/cont_img06.jpg" width="210" height="10"></td>
			</tr>
		</table></td>
	  </tr>
	</table></td>
	<td valign="top"><table width="210" border="0" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="text07" style="padding-bottom:4px;"><strong>금융인</strong></td>
	  </tr>
	  <tr>
		<td><table width="210" border="0" cellspacing="0" cellpadding="0">
			<tr>
			  <td><img src="img/surn/cont_img05.jpg" width="210" height="10"></td>
			</tr>
			<tr>
			  <td height="120" valign="top" background="img/surn/cont_img07.jpg" style="padding:4px 14px 4px 14px;">
				<?php $i=0;?>
				<?php if(count($list[4])>0):?>
				  <?php foreach ($list[4] as $key => $val) :?>
					<?php if($i%4==0):?>
					  <table width="0" border="0" cellspacing="0" cellpadding="0">
						<tr>
					<?php endif;?>
						  <td <?php if($i%4!=3):?>width="48"<?php endif;?> height="28" class="text02">
							 <a href="pup03.php" class="su" onclick="top.popup(this.href+'?sid=<?php echo $val->article_sid;?>', '460','336');return false" ><?php echo $val->article_title;?></a>
						  </td>
					<?php if ($i+1==count($list[4])) :?>
						<?php $q = $i%4+1;;?>
						<?php for ($j=0; $j<3-($i%4); $j++) :?>
							<td <?php if($q%4!=3):?>width="48"<?php endif;?> height="28" class="text02">&nbsp;</td>
							<?php $q++;?>
						<?php endfor;?>
					<?php endif;?>
					<?php if($i%4==3 || $i+1==count($list[4])):?>
						</tr>
					  </table>
					<?php endif;?>
					<?php $i++;?>
				  <?php endforeach;?>
				<?php endif;?></td>
			</tr>
			<tr>
			  <td><img src="img/surn/cont_img06.jpg" width="210" height="10"></td>
			</tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
</table>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
	  <td width="248" valign="top" style="padding-bottom:20px;"><table width="210" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td class="text07" style="padding-bottom:4px;"><strong>군인</strong></td>
		  </tr>
		  <tr>
			<td><table width="210" border="0" cellspacing="0" cellpadding="0">
				<tr>
				  <td><img src="img/surn/cont_img05.jpg" width="210" height="10"></td>
				</tr>
				<tr>
				  <td height="120" valign="top" background="img/surn/cont_img07.jpg" style="padding:4px 14px 4px 14px;">
				<?php $i=0;?>
				<?php if(count($list[5])>0):?>
				  <?php foreach ($list[5] as $key => $val) :?>
					<?php if($i%4==0):?>
					  <table width="0" border="0" cellspacing="0" cellpadding="0">
						<tr>
					<?php endif;?>
						  <td <?php if($i%4!=3):?>width="48"<?php endif;?> height="28" class="text02">
							 <a href="pup03.php" class="su" onclick="top.popup(this.href+'?sid=<?php echo $val->article_sid;?>', '460','336');return false" ><?php echo $val->article_title;?></a>
						  </td>
					<?php if ($i+1==count($list[5])) :?>
						<?php $q = $i%4+1;;?>
						<?php for ($j=0; $j<3-($i%4); $j++) :?>
							<td <?php if($q%4!=3):?>width="48"<?php endif;?> height="28" class="text02">&nbsp;</td>
							<?php $q++;?>
						<?php endfor;?>
					<?php endif;?>
					<?php if($i%4==3 || $i+1==count($list[5])):?>
						</tr>
					  </table>
					<?php endif;?>
					<?php $i++;?>
				  <?php endforeach;?>
				<?php endif;?></td>
				</tr>
				<tr>
				  <td><img src="img/surn/cont_img06.jpg" width="210" height="10"></td>
				</tr>
			</table></td>
		  </tr>
	  </table></td>
	  <td width="248" valign="top"><table width="210" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td class="text07" style="padding-bottom:4px;"><strong>법조인</strong></td>
		  </tr>
		  <tr>
			<td><table width="210" border="0" cellspacing="0" cellpadding="0">
				<tr>
				  <td><img src="img/surn/cont_img05.jpg" width="210" height="10"></td>
				</tr>
				<tr>
				  <td height="120" valign="top" background="img/surn/cont_img07.jpg" style="padding:4px 14px 4px 14px;">
				<?php $i=0;?>
				<?php if(count($list[6])>0):?>
				  <?php foreach ($list[6] as $key => $val) :?>
					<?php if($i%4==0):?>
					  <table width="0" border="0" cellspacing="0" cellpadding="0">
						<tr>
					<?php endif;?>
						  <td <?php if($i%4!=3):?>width="48"<?php endif;?> height="28" class="text02">
							 <a href="pup03.php" class="su" onclick="top.popup(this.href+'?sid=<?php echo $val->article_sid;?>', '460','336');return false" ><?php echo $val->article_title;?></a>
						  </td>
					<?php if ($i+1==count($list[6])) :?>
						<?php $q = $i%4+1;;?>
						<?php for ($j=0; $j<3-($i%4); $j++) :?>
							<td <?php if($q%4!=3):?>width="48"<?php endif;?> height="28" class="text02">&nbsp;</td>
							<?php $q++;?>
						<?php endfor;?>
					<?php endif;?>
					<?php if($i%4==3 || $i+1==count($list[6])):?>
						</tr>
					  </table>
					<?php endif;?>
					<?php $i++;?>
				  <?php endforeach;?>
				<?php endif;?></td>
				</tr>
				<tr>
				  <td><img src="img/surn/cont_img06.jpg" width="210" height="10"></td>
				</tr>
			</table></td>
		  </tr>
	  </table></td>
	  <td width="248" valign="top"><table width="210" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td class="text07" style="padding-bottom:4px;"><strong>언론인</strong></td>
		  </tr>
		  <tr>
			<td><table width="210" border="0" cellspacing="0" cellpadding="0">
				<tr>
				  <td><img src="img/surn/cont_img05.jpg" width="210" height="10"></td>
				</tr>
				<tr>
				  <td height="120" valign="top" background="img/surn/cont_img07.jpg" style="padding:4px 14px 4px 14px;">
				<?php $i=0;?>
				<?php if(count($list[7])>0):?>
				  <?php foreach ($list[7] as $key => $val) :?>
					<?php if($i%4==0):?>
					  <table width="0" border="0" cellspacing="0" cellpadding="0">
						<tr>
					<?php endif;?>
						  <td <?php if($i%4!=3):?>width="48"<?php endif;?> height="28" class="text02">
							 <a href="pup03.php" class="su" onclick="top.popup(this.href+'?sid=<?php echo $val->article_sid;?>', '460','336');return false" ><?php echo $val->article_title;?></a>
						  </td>
					<?php if ($i+1==count($list[7])) :?>
						<?php $q = $i%4+1;;?>
						<?php for ($j=0; $j<3-($i%4); $j++) :?>
							<td <?php if($q%4!=3):?>width="48"<?php endif;?> height="28" class="text02">&nbsp;</td>
							<?php $q++;?>
						<?php endfor;?>
					<?php endif;?>
					<?php if($i%4==3 || $i+1==count($list[7])):?>
						</tr>
					  </table>
					<?php endif;?>
					<?php $i++;?>
				  <?php endforeach;?>
				<?php endif;?></td>
				</tr>
				<tr>
				  <td><img src="img/surn/cont_img06.jpg" width="210" height="10"></td>
				</tr>
			</table></td>
		  </tr>
	  </table></td>
	  <td valign="top"><table width="210" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td class="text07" style="padding-bottom:4px;"><strong>교육인</strong></td>
		  </tr>
		  <tr>
			<td><table width="210" border="0" cellspacing="0" cellpadding="0">
				<tr>
				  <td><img src="img/surn/cont_img05.jpg" width="210" height="10"></td>
				</tr>
				<tr>
				  <td height="120" valign="top" background="img/surn/cont_img07.jpg" style="padding:4px 14px 4px 14px;">
				<?php $i=0;?>
				<?php if(count($list[8])>0):?>
				  <?php foreach ($list[8] as $key => $val) :?>
					<?php if($i%4==0):?>
					  <table width="0" border="0" cellspacing="0" cellpadding="0">
						<tr>
					<?php endif;?>
						  <td <?php if($i%4!=3):?>width="48"<?php endif;?> height="28" class="text02">
							 <a href="pup03.php" class="su" onclick="top.popup(this.href+'?sid=<?php echo $val->article_sid;?>', '460','336');return false" ><?php echo $val->article_title;?></a>
						  </td>
					<?php if ($i+1==count($list[8])) :?>
						<?php $q = $i%4+1;;?>
						<?php for ($j=0; $j<3-($i%4); $j++) :?>
							<td <?php if($q%4!=3):?>width="48"<?php endif;?> height="28" class="text02">&nbsp;</td>
							<?php $q++;?>
						<?php endfor;?>
					<?php endif;?>
					<?php if($i%4==3 || $i+1==count($list[8])):?>
						</tr>
					  </table>
					<?php endif;?>
					<?php $i++;?>
				  <?php endforeach;?>
				<?php endif;?></td>
				</tr>
				<tr>
				  <td><img src="img/surn/cont_img06.jpg" width="210" height="10"></td>
				</tr>
			</table></td>
		  </tr>
	  </table></td>
	</tr>
  </table>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
	  <td width="248" valign="top" style="padding-bottom:20px;"><table width="210" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td class="text07" style="padding-bottom:4px;"><strong>의료인</strong></td>
		  </tr>
		  <tr>
			<td><table width="210" border="0" cellspacing="0" cellpadding="0">
				<tr>
				  <td><img src="img/surn/cont_img05.jpg" width="210" height="10"></td>
				</tr>
				<tr>
				  <td height="120" valign="top" background="img/surn/cont_img07.jpg" style="padding:4px 14px 4px 14px;">
				<?php $i=0;?>
				<?php if(count($list[9])>0):?>
				  <?php foreach ($list[9] as $key => $val) :?>
					<?php if($i%4==0):?>
					  <table width="0" border="0" cellspacing="0" cellpadding="0">
						<tr>
					<?php endif;?>
						  <td <?php if($i%4!=3):?>width="48"<?php endif;?> height="28" class="text02">
							 <a href="pup03.php" class="su" onclick="top.popup(this.href+'?sid=<?php echo $val->article_sid;?>', '460','336');return false" ><?php echo $val->article_title;?></a>
						  </td>
					<?php if ($i+1==count($list[9])) :?>
						<?php $q = $i%4+1;;?>
						<?php for ($j=0; $j<3-($i%4); $j++) :?>
							<td <?php if($q%4!=3):?>width="48"<?php endif;?> height="28" class="text02">&nbsp;</td>
							<?php $q++;?>
						<?php endfor;?>
					<?php endif;?>
					<?php if($i%4==3 || $i+1==count($list[9])):?>
						</tr>
					  </table>
					<?php endif;?>
					<?php $i++;?>
				  <?php endforeach;?>
				<?php endif;?></td>
				</tr>
				<tr>
				  <td><img src="img/surn/cont_img06.jpg" width="210" height="10"></td>
				</tr>
			</table></td>
		  </tr>
	  </table></td>
	  <td width="248" valign="top"><table width="210" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td class="text07" style="padding-bottom:4px;"><strong>전문직업인</strong></td>
		  </tr>
		  <tr>
			<td><table width="210" border="0" cellspacing="0" cellpadding="0">
				<tr>
				  <td><img src="img/surn/cont_img05.jpg" width="210" height="10"></td>
				</tr>
				<tr>
				  <td height="120" valign="top" background="img/surn/cont_img07.jpg" style="padding:4px 14px 4px 14px;">
				<?php $i=0;?>
				<?php if(count($list[10])>0):?>
				  <?php foreach ($list[10] as $key => $val) :?>
					<?php if($i%4==0):?>
					  <table width="0" border="0" cellspacing="0" cellpadding="0">
						<tr>
					<?php endif;?>
						  <td <?php if($i%4!=3):?>width="48"<?php endif;?> height="28" class="text02">
							 <a href="pup03.php" class="su" onclick="top.popup(this.href+'?sid=<?php echo $val->article_sid;?>', '460','336');return false" ><?php echo $val->article_title;?></a>
						  </td>
					<?php if ($i+1==count($list[10])) :?>
						<?php $q = $i%4+1;;?>
						<?php for ($j=0; $j<3-($i%4); $j++) :?>
							<td <?php if($q%4!=3):?>width="48"<?php endif;?> height="28" class="text02">&nbsp;</td>
							<?php $q++;?>
						<?php endfor;?>
					<?php endif;?>
					<?php if($i%4==3 || $i+1==count($list[10])):?>
						</tr>
					  </table>
					<?php endif;?>
					<?php $i++;?>
				  <?php endforeach;?>
				<?php endif;?></td>
				</tr>
				<tr>
				  <td><img src="img/surn/cont_img06.jpg" width="210" height="10"></td>
				</tr>
			</table></td>
		  </tr>
	  </table></td>
	  <td width="248" valign="top"><table width="210" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td class="text07" style="padding-bottom:4px;"><strong>종교인</strong></td>
		  </tr>
		  <tr>
			<td><table width="210" border="0" cellspacing="0" cellpadding="0">
				<tr>
				  <td><img src="img/surn/cont_img05.jpg" width="210" height="10"></td>
				</tr>
				<tr>
				  <td height="120" valign="top" background="img/surn/cont_img07.jpg" style="padding:4px 14px 4px 14px;">
				<?php $i=0;?>
				<?php if(count($list[11])>0):?>
				  <?php foreach ($list[11] as $key => $val) :?>
					<?php if($i%4==0):?>
					  <table width="0" border="0" cellspacing="0" cellpadding="0">
						<tr>
					<?php endif;?>
						  <td <?php if($i%4!=3):?>width="48"<?php endif;?> height="28" class="text02">
							 <a href="pup03.php" class="su" onclick="top.popup(this.href+'?sid=<?php echo $val->article_sid;?>', '460','336');return false" ><?php echo $val->article_title;?></a>
						  </td>
					<?php if ($i+1==count($list[11])) :?>
						<?php $q = $i%4+1;;?>
						<?php for ($j=0; $j<3-($i%4); $j++) :?>
							<td <?php if($q%4!=3):?>width="48"<?php endif;?> height="28" class="text02">&nbsp;</td>
							<?php $q++;?>
						<?php endfor;?>
					<?php endif;?>
					<?php if($i%4==3 || $i+1==count($list[11])):?>
						</tr>
					  </table>
					<?php endif;?>
					<?php $i++;?>
				  <?php endforeach;?>
				<?php endif;?></td>
				</tr>
				<tr>
				  <td><img src="img/surn/cont_img06.jpg" width="210" height="10"></td>
				</tr>
			</table></td>
		  </tr>
	  </table></td>
	  <td valign="top"><table width="210" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td class="text07" style="padding-bottom:4px;"><strong>연구학술인</strong></td>
		  </tr>
		  <tr>
			<td><table width="210" border="0" cellspacing="0" cellpadding="0">
				<tr>
				  <td><img src="img/surn/cont_img05.jpg" width="210" height="10"></td>
				</tr>
				<tr>
				  <td height="120" valign="top" background="img/surn/cont_img07.jpg" style="padding:4px 14px 4px 14px;">
				<?php $i=0;?>
				<?php if(count($list[12])>0):?>
				  <?php foreach ($list[12] as $key => $val) :?>
					<?php if($i%4==0):?>
					  <table width="0" border="0" cellspacing="0" cellpadding="0">
						<tr>
					<?php endif;?>
						  <td <?php if($i%4!=3):?>width="48"<?php endif;?> height="28" class="text02">
							 <a href="pup03.php" class="su" onclick="top.popup(this.href+'?sid=<?php echo $val->article_sid;?>', '460','336');return false" ><?php echo $val->article_title;?></a>
						  </td>
					<?php if ($i+1==count($list[12])) :?>
						<?php $q = $i%4+1;;?>
						<?php for ($j=0; $j<3-($i%4); $j++) :?>
							<td <?php if($q%4!=3):?>width="48"<?php endif;?> height="28" class="text02">&nbsp;</td>
							<?php $q++;?>
						<?php endfor;?>
					<?php endif;?>
					<?php if($i%4==3 || $i+1==count($list[12])):?>
						</tr>
					  </table>
					<?php endif;?>
					<?php $i++;?>
				  <?php endforeach;?>
				<?php endif;?></td>
				</tr>
				<tr>
				  <td><img src="img/surn/cont_img06.jpg" width="210" height="10"></td>
				</tr>
			</table></td>
		  </tr>
	  </table></td>
	</tr>
  </table>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
	  <td width="248" valign="top"><table width="210" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td class="text07" style="padding-bottom:4px;"><strong>문화예술인</strong></td>
		  </tr>
		  <tr>
			<td><table width="210" border="0" cellspacing="0" cellpadding="0">
				<tr>
				  <td><img src="img/surn/cont_img05.jpg" width="210" height="10"></td>
				</tr>
				<tr>
				  <td height="120" valign="top" background="img/surn/cont_img07.jpg" style="padding:4px 14px 4px 14px;">
				<?php $i=0;?>
				<?php if(count($list[13])>0):?>
				  <?php foreach ($list[13] as $key => $val) :?>
					<?php if($i%4==0):?>
					  <table width="0" border="0" cellspacing="0" cellpadding="0">
						<tr>
					<?php endif;?>
						  <td <?php if($i%4!=3):?>width="48"<?php endif;?> height="28" class="text02">
							 <a href="pup03.php" class="su" onclick="top.popup(this.href+'?sid=<?php echo $val->article_sid;?>', '460','336');return false" ><?php echo $val->article_title;?></a>
						  </td>
					<?php if ($i+1==count($list[13])) :?>
						<?php $q = $i%4+1;;?>
						<?php for ($j=0; $j<3-($i%4); $j++) :?>
							<td <?php if($q%4!=3):?>width="48"<?php endif;?> height="28" class="text02">&nbsp;</td>
							<?php $q++;?>
						<?php endfor;?>
					<?php endif;?>
					<?php if($i%4==3 || $i+1==count($list[13])):?>
						</tr>
					  </table>
					<?php endif;?>
					<?php $i++;?>
				  <?php endforeach;?>
				<?php endif;?></td>
				</tr>
				<tr>
				  <td><img src="img/surn/cont_img06.jpg" width="210" height="10"></td>
				</tr>
			</table></td>
		  </tr>
	  </table></td>
	  <td width="248" valign="top"><table width="210" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td class="text07" style="padding-bottom:4px;"><strong>사회복지기관단체인</strong></td>
		  </tr>
		  <tr>
			<td><table width="210" border="0" cellspacing="0" cellpadding="0">
				<tr>
				  <td><img src="img/surn/cont_img05.jpg" width="210" height="10"></td>
				</tr>
				<tr>
				  <td height="120" valign="top" background="img/surn/cont_img07.jpg" style="padding:4px 14px 4px 14px;">
				<?php $i=0;?>
				<?php if(count($list[14])>0):?>
				  <?php foreach ($list[14] as $key => $val) :?>
					<?php if($i%4==0):?>
					  <table width="0" border="0" cellspacing="0" cellpadding="0">
						<tr>
					<?php endif;?>
						  <td <?php if($i%4!=3):?>width="48"<?php endif;?> height="28" class="text02">
							 <a href="pup03.php" class="su" onclick="top.popup(this.href+'?sid=<?php echo $val->article_sid;?>', '460','336');return false" ><?php echo $val->article_title;?></a>
						  </td>
					<?php if ($i+1==count($list[14])) :?>
						<?php $q = $i%4+1;;?>
						<?php for ($j=0; $j<3-($i%4); $j++) :?>
							<td <?php if($q%4!=3):?>width="48"<?php endif;?> height="28" class="text02">&nbsp;</td>
							<?php $q++;?>
						<?php endfor;?>
					<?php endif;?>
					<?php if($i%4==3 || $i+1==count($list[14])):?>
						</tr>
					  </table>
					<?php endif;?>
					<?php $i++;?>
				  <?php endforeach;?>
				<?php endif;?></td>
				</tr>
				<tr>
				  <td><img src="img/surn/cont_img06.jpg" width="210" height="10"></td>
				</tr>
			</table></td>
		  </tr>
	  </table></td>
	  <td width="248" valign="top"><table width="210" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td class="text07" style="padding-bottom:4px;"><strong>스포츠인</strong></td>
		  </tr>
		  <tr>
			<td><table width="210" border="0" cellspacing="0" cellpadding="0">
				<tr>
				  <td><img src="img/surn/cont_img05.jpg" width="210" height="10"></td>
				</tr>
				<tr>
				  <td height="120" valign="top" background="img/surn/cont_img07.jpg" style="padding:4px 14px 4px 14px;">
				<?php $i=0;?>
				<?php if(count($list[15])>0):?>
				  <?php foreach ($list[15] as $key => $val) :?>
					<?php if($i%4==0):?>
					  <table width="0" border="0" cellspacing="0" cellpadding="0">
						<tr>
					<?php endif;?>
						  <td <?php if($i%4!=3):?>width="48"<?php endif;?> height="28" class="text02">
							 <a href="pup03.php" class="su" onclick="top.popup(this.href+'?sid=<?php echo $val->article_sid;?>', '460','336');return false" ><?php echo $val->article_title;?></a>
						  </td>
					<?php if ($i+1==count($list[15])) :?>
						<?php $q = $i%4+1;;?>
						<?php for ($j=0; $j<3-($i%4); $j++) :?>
							<td <?php if($q%4!=3):?>width="48"<?php endif;?> height="28" class="text02">&nbsp;</td>
							<?php $q++;?>
						<?php endfor;?>
					<?php endif;?>
					<?php if($i%4==3 || $i+1==count($list[15])):?>
						</tr>
					  </table>
					<?php endif;?>
					<?php $i++;?>
				  <?php endforeach;?>
				<?php endif;?></td>
				</tr>
				<tr>
				  <td><img src="img/surn/cont_img06.jpg" width="210" height="10"></td>
				</tr>
			</table></td>
		  </tr>
	  </table></td>
	  <td valign="top"><table width="210" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td class="text07" style="padding-bottom:4px;"><strong>대중문화 연예인</strong></td>
		  </tr>
		  <tr>
			<td><table width="210" border="0" cellspacing="0" cellpadding="0">
				<tr>
				  <td><img src="img/surn/cont_img05.jpg" width="210" height="10"></td>
				</tr>
				<tr>
				  <td height="120" valign="top" background="img/surn/cont_img07.jpg" style="padding:4px 14px 4px 14px;">
				<?php $i=0;?>
				<?php if(count($list[16])>0):?>
				  <?php foreach ($list[16] as $key => $val) :?>
					<?php if($i%4==0):?>
					  <table width="0" border="0" cellspacing="0" cellpadding="0">
						<tr>
					<?php endif;?>
						  <td <?php if($i%4!=3):?>width="48"<?php endif;?> height="28" class="text02">
							 <a href="pup03.php" class="su" onclick="top.popup(this.href+'?sid=<?php echo $val->article_sid;?>', '460','336');return false" ><?php echo $val->article_title;?></a>
						  </td>
					<?php if ($i+1==count($list[16])) :?>
						<?php $q = $i%4+1;;?>
						<?php for ($j=0; $j<3-($i%4); $j++) :?>
							<td <?php if($q%4!=3):?>width="48"<?php endif;?> height="28" class="text02">&nbsp;</td>
							<?php $q++;?>
						<?php endfor;?>
					<?php endif;?>
					<?php if($i%4==3 || $i+1==count($list[16])):?>
						</tr>
					  </table>
					<?php endif;?>
					<?php $i++;?>
				  <?php endforeach;?>
				<?php endif;?></td>
				</tr>
				<tr>
				  <td><img src="img/surn/cont_img06.jpg" width="210" height="10"></td>
				</tr>
			</table></td>
		  </tr>
	  </table></td>
	</tr>
  </table>
 <? include "inc/inc_footer.php" ?><!-- footer -->